﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhaoxi.Industrial.Base;

namespace Zhaoxi.Industrial.Model
{
    public class DeviceModel:NotifyPropertyBase
    {
        public string ?id { get; set; }

        public string ?name { get; set; }

        //public bool isWarning { get; set; } = false;
        private bool _isWarning = false;

        public bool isWarning
        {
            get { return _isWarning; }
            set { 
                _isWarning = value;
                this.RaisePropertyChanged();
            }
        }


        //public bool isRunning { get; set; }
        private bool _isRunning;

        public bool isRunning
        {
            get { return _isRunning; }
            set { 
                _isRunning = value;
                this.RaisePropertyChanged();
            }
        }



        public ObservableCollection<MonitorValuesModel> monitorValues { get; set; } = new ObservableCollection<MonitorValuesModel>();

        public List<WarningMessageModel> WarningList { get; set; } = new List<WarningMessageModel>();
    }
}
